<?php
namespace App\Providers; use Illuminate\Support\Facades\Gate; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; class AuthServiceProvider extends ServiceProvider { protected $policies = array('App\\Model' => 'App\\Policies\\ModelPolicy', 'App\\User' => 'App\\Policies\\UserPolicy'); public function boot() { $this->registerPolicies(); } }